package com.cy.pj.sys.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SysMenuDao {
	@Select("select count(*) from sys_menus where parentId=#{id}")
	int getChildCount(Integer id);
	/*
	 * 基于id删除
	 */
	@Delete("delect from sys_monus where id=#{id}")
	int delectOBject(Integer id);
	/*
	 * 查询菜单表中所有的菜单记录
	 * 
	 */
	
	List<Map<String,Object>> fundObjects();
}
